package com.abl.controller.system;

import com.abl.domain.model.Param;
import com.abl.domain.model.SRS;
import com.abl.controller.BaseController;
import com.abl.service.system.SysService;
import com.abl.common.security.annotation.ResC;
import com.abl.common.security.annotation.ResM;
import com.abl.common.cache.CacheService;
import com.alibaba.fastjson2.JSONObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@ResC("缓存管理")
@Tag(name = "缓存管理")
@RestController
@RequestMapping("/system/cache")
public class SysCacheController extends BaseController {
    @Autowired
    CacheService cache;

    @Autowired
    SysService system;

    @ResM("删除")
    @PostMapping({"/del"})
    public SRS<Object> del(@RequestBody Param<JSONObject> param) {
        return SRS.bySuccess();
    }

    @ResM("修改")
    @PostMapping({"/edit"})
    public SRS<Object> edit(@RequestBody Param<JSONObject> param) {
        return SRS.bySuccess();

    }

}
